<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var num1=20
        var num2=20
        if(num1>num2){
            console.log(num1);
        } else if(num1<num2){
            console.log(num2);
        } else{
            console.log("输入的数无法比较大小");
        }


        var num3=0;
        if(num3 %  1== 0 ){
            console.log("这个数是个整数");
            if(num3>0){
                console.log(num3+"的范围大于0");
            }else if(num3==0){
                console.log(num3+"的范围等于0");
            }else if(num3<0){
                console.log(num3+"的范围小于0");
            }
        } else if(num3 %  1!= 0){
            console.log("这个数不是个整数");
        }


        var num4=35;
        if(num4 % 2==0){
            console.log("这个数是个偶数");
        }else{
            console.log("这个数是个奇数");
        }


        var h=174;
        var w=(h -108)*2;
        var tw=113;
        if(w+10<tw){
            console.log("体重偏高");
        }else if(w-10>tw){
            console.log("体重偏低");
        }else if(w+10>=tw || w-10<=tw){
            console.log("体重正常");
        }
        
        var fenshu=87;
        switch(true){
            case (90<=fenshu&& fenshu>=100):
                console.log("A");
                break;
            case (80<=fenshu&& fenshu>=89):
                console.log("B");
                break;  
            case (70<=fenshu&& fenshu>=79):
                console.log("C");
                break;   
            case (60<=fenshu&& fenshu>=69):
                console.log("D");
                break;
            case (0<=fenshu&& fenshu>=60):
                console.log("E");
                break; 
        }

        var month=2;
        switch(month){
            case (month=1):
            case (month=3):
            case (month=5):
            case (month=7):
            case (month=8):
            case (month=10):
            case (month=12):
            console.log(month+"月有31天");
            break;
            case (month=4):
            case (month=6):
            case (month=9):
            case (month=11):
            console.log(month+"月有30天");
            break;
            case (month=2):
            console.log(month+"月有28或29天");
        }

        var money=10000;
        var year=1;
        while(year<=10){
            
            money=money+money*0.05;
            year++;
        }
        console.log(money);

        var num5=1;
        while(num5<100){
            if(num5 % 7==0 || num5 % 10 == 7 || (num5>69&&num5<80)){
                console.log(num5);
            }
            num5++
        }
        


        var num6=0;
        while(num6<100){
            if(num6%2!=0){
                document.write(num6);
            }
            num6++
        }
    </script>
</body>

</html>